Linux webm002.cluster126.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
/
home
/
ariannadhf
/
www
/
wp-content
/
plugins
/
loco-translate
/
src
/
fs
/
/home/ariannadhf/www/wp-content/plugins/loco-translate/src/fs/Link.php
<?php /** * */ class Loco_fs_Link extends Loco_fs_File { /** * @var Loco_fs_File */ private ?Loco_fs_File $real = null; /** * {@inheritdoc} */ public function __construct( $path ){ parent::__construct($path); $real = realpath( $this->getPath() ); if( is_string($real) ){ if( is_dir($real) ){ $this->real = new Loco_fs_Directory($real); } else { $this->real = new Loco_fs_File($real); } } } /** * @return Loco_fs_File|null */ public function resolve():?Loco_fs_File { return $this->real; } /** * {@inheritdoc} */ public function isDirectory():bool { return $this->real instanceof Loco_fs_Directory; } }